package com.shop.operator.service;

import java.util.List;
import java.util.Map;

import com.shop.domain.PageResult;
import com.shop.model.Brand;

public interface BrandService {
	/**
	 * 查找全部品牌
	 * @return
	 * @throws Exception
	 */
	List<Brand> findAll() throws Exception;
	/**
	 * 更新品牌
	 * @param brand
	 * @throws Exception
	 */
	void updateById(Brand brand) throws Exception;
	/**
	 * 插入品牌
	 * @param brand
	 * @throws Exception
	 */
	void insert(Brand brand) throws Exception;
	/**
	 * 批量删除品牌
	 * @param ids
	 * @throws Exception
	 */
	void deleteByIds(List<Long> ids) throws Exception;
	/**
	 * 模糊查找品牌
	 * @param name
	 * @return
	 * @throws Exception
	 */
	List<Brand> findLikeName(String name) throws Exception;
	/**
	 * 查找分页信息与该页品牌记录
	 * @param map
	 * @return
	 * @throws Exception
	 */
	List<Brand> findByPage(Map<String,String> map) throws Exception;
	
	/**
	 * 查找该页品牌记录
	 * @param pageNum
	 * @param pageSize
	 * @param name
	 * @return
	 */
	PageResult findPage(Integer pageNum,Integer pageSize,String name);	
}
